<%@ page language="java"
	import="com.sql.*,com.database.*"
	pageEncoding="gb2312"%>
<%
	String BranchID="";
    String OldBranchID = (String)session.getAttribute("oldBranchID");
    BranchID=OldBranchID;
  		if(session.getAttribute("branchid")!=null){
  			BranchID=(String)session.getAttribute("branchid");
  		}
	String datetpe = request.getParameter("datetpe");
	String configname=datetpe;
	
	if(request.getParameter("datetpe1")!=null){
	configname=request.getParameter("datetpe1");
	datetpe=request.getParameter("datetpe1");
		}

	DataBase db = new DataBase();
	ReportFormSql report = new ReportFormSql();
	String sql = "";
			sql="insert into CQMS_Net_Solution (branchid,datetpe,configname) values ('"+BranchID+"','"+datetpe+"','"+configname+"')";
	try {
		db.executeUpdate(sql);
		response.sendRedirect("Solution.jsp");
	} catch (Exception ex) {
		System.out.println(ex.getMessage());
		response.sendRedirect("Solution.jsp");
	} finally {
		db.closeStmt();
		db.closeConn();
	}
%>
